package cj.web.tel.constants;

public enum GroupPeopleTypeEnum {
	TYPE_0("集团领导",1),
	TYPE_1("分管领导",10),
	TYPE_2("部门主任",20),
	TYPE_3("部门副主任",25),
	TYPE_4("科长",30),
	TYPE_5("职工",80),
	TYPE_6("-",100),;
	private String name;
	private int value;
	
	private GroupPeopleTypeEnum(String name, int value){
		this.name = name;
		this.value = value;
	}
	
	public static String getName(int value) {
        for (GroupPeopleTypeEnum c : GroupPeopleTypeEnum.values()) {
            if (c.getValue()==value) {
                return c.name;
            }
        }
        return null;
    }
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getValue() {
		return value;
	}

	public void setValue(int value) {
		this.value = value;
	}
}
